<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="../common/css/materialize.css" rel="stylesheet">
    <link rel="stylesheet" href="./css/style.css">
</head>

<body>
    <div id="nav">
        <index-nav v-if="type === 'index'"></index-nav>
        <!--<div class="navbar-fixed nav-extended">
            <nav class="white darken-4 ">
                <div class="nav-wrapper container">
                    <a href="#!" class="brand-logo grey-text">LOGO</a>
                    <a href="#" data-activates="slide-out" class="button-collapse"><i class="material-icons grey-text">menu</i></a>
                    <ul class="right hide-on-med-and-down">
                        <li class="active"><a class="grey-text waves-effect" href="#!"><i class="material-icons left grey-text">home</i>首页</a></li>
                        <li><a class="grey-text waves-effect" href="#!"><i class="material-icons left grey-text">search</i>搜索</a></li>
                        <li><a class="btn waves-effect grey waves-light" href="#!">登录</a></li>
                        <li><a class="btn waves-effect grey waves-light" href="#!">注册</a></li>
                        <li>
                            <a style="max-height:64px;padding-top:5px;" href="#"><img class="circle" style="border: medium solid white;max-height:54px;" src="https://kejun.space/assets/images/photo.jpg"></a>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
        <ul id="slide-out" class="side-nav">
            <li>
                <div class="userView">
                    <div class="background">
                    </div>
                    <a href="#!user"><img class="circle" style="border: medium solid white" src="https://kejun.space/assets/images/photo.jpg"></a>
                    <a href="#!name"><span class="white-text name">KeJun</span></a>
                    <a href="#!email"><span class="white-text email">kejun1997@gmail.com</span></a>
                </div>
            </li>
            <li><a class="subheader">Page</a></li>
            <li class="active"><a class=" waves-effect" href="#!"><i class="material-icons">home</i>首页</a></li>
            <li><a class="waves-effect" href="#!"><i class="material-icons">search</i>搜索</a></li>
            <li>
                <div class="divider"></div>
            </li>
            <li><a class="subheader">Sign in or Sign up</a></li>
            <li><a class="waves-effect" href="#!">登录</a></li>
            <li><a class="waves-effect" href="#!">注册</a></li>
        </ul>-->
    </div>

    <main>
        <div class="content-background"></div>
        <div style="margin-top: 70px;" class="container">
            <div class="row">
                <div class="col s12">
                    <div class="card white">
                        <div class="center">
                            <div style="position: absolute;top: 10px;" class="preloader-wrapper active">
                                <div class="spinner-layer spinner-blue-only">
                                    <div class="circle-clipper left">
                                        <div class="circle"></div>
                                    </div>
                                    <div class="gap-patch">
                                        <div class="circle"></div>
                                    </div>
                                    <div class="circle-clipper right">
                                        <div class="circle"></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div style="opacity: 0.2;padding: 16px 0px 0px; padding-bottom: 0px;" class="card-content black-text">
                            <p style="font-size: 24px; margin-bottom: 16px;margin-left: 2em;">所有投票主题</p>
                            <ul style="border-width: 1px 0px;" id="voteList" class="collapsible" data-collapsible="accordion">
                                <vote-item v-for="item in voteList" v-bind:item="item" :key="item.id"></vote-item>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <script src="../common/js/vue.js"></script>
    <script src="../common/js/jquery-3.2.0.min.js"></script>
    <script src="../common/js/jquery.cookie.js"></script>
    <script src="../common/js/materialize.min.js"></script>
    <script src="../common/js/components/nav.js"></script>
    <script src="js/vote-item.js"></script>
    <script>
        $(document).ready(function () {
            $('.button-collapse').sideNav();
        });
    </script>
</body>
</html>